package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.mapper.SsUserMapper;
import com.czkt.pojo.SsUser;
import com.czkt.service.SsUserService;
import org.springframework.stereotype.Service;

@Service
public class SsUserServiceImpl extends ServiceImpl<SsUserMapper, SsUser> implements SsUserService {


    @Override
    public SsUser getUserName(String username) {
        LambdaQueryWrapper<SsUser> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SsUser::getUsername,username);
        return baseMapper.selectOne(queryWrapper);
    }
}
